﻿namespace GX
{
    public interface IDataInput
    {

        int bytesAvailable { get; }

        bool ReadBool();
        byte ReadByte();

        short ReadShort();
        int ReadInt();
        long ReadLong();
        ushort ReadUShort();
        uint ReadUInt();
        ulong ReadULong();
        float ReadFloat();
        double ReadDouble();
        string ReadString();
        void Read(byte[] bytes, int offset = 0, int length = 0);
    }
}